import ppRoutes from './ppRoutes'
import wpRoutes from './wpRoutes'
// 这里为业务路由
const busRoutes = [
  {
    path: '/',
    redirect: '/index',
    component: () => import('layouts/AppLayout.vue'),
    meta: {
      requiresAuth: true
    },
    children: [
      {
        path: 'index',
        component: () => import('pages/Index.vue')
      },
      {
        path: 'product',
        component: () => import('pages/Product/Product.vue')
      },
      {
        path: 'message',
        component: () => import('pages/Message/Message.vue')
      },
      {
        path: 'about',
        component: () => import('pages/About/About.vue')
      },
      // 演示路由 删除
      {
        path: '/demo',
        component: () => import('pages/Demo/Index.vue'),
        children: [
          {
            path: 'list',
            component: () => import('pages/Demo/Laed/List.vue')
          },
          {
            path: 'add',
            component: () => import('pages/Demo/Laed/Add.vue')
          },
          {
            path: 'view',
            component: () => import('pages/Demo/Laed/View.vue')
          },
          {
            path: 'detail',
            component: () => import('pages/Demo/Laed/Detail.vue')
          },
          {
            path: 'test',
            component: () => import('pages/Demo/Laed/Test.vue')
          },
          {
            path: 'g2',
            component: () => import('pages/Demo/G2/Index.vue')
          },
          {
            path: 'dict',
            component: () => import('pages/Demo/Laed/DictDemo.vue')
          },
          {
            path: 'dicttype',
            component: () => import('pages/Demo/Laed/DictType.vue')
          },
          {
            path: 'menu',
            component: () => import('pages/Demo/LhDemo/Menu.vue')
          },
          {
            path: 'graphical',
            component: () => import('pages/Demo/LhDemo/Graphical.vue')
          },
          {
            path: 'file',
            component: () => import('pages/Demo/LhDemo/File.vue')
          },
          // {
          //   path: 'order',
          //   component: () => import('pages/Demo/Order/side.vue')
          // }
          {
            path: 'order',
            component: () => import('pages/Demo/Order/Order.vue'),
            meta: {
              requiresAuth: true
            }
          },
          {
            path: 'gantt',
            component: () => import('pages/Demo/Gantt/Gantt.vue'),
            meta: {
              requiresAuth: true
            }
          },
          // {
          //   path: 'gantt-brt',
          //   component: () => import('pages/Demo/GanttBrt/GanttBrt.vue'),
          //   meta: {
          //     requiresAuth: true
          //   }
          // },
          {
            path: 'gantt-kendo',
            component: () => import('pages/Demo/GanttKendo/GanttKendo.vue'),
            meta: {
              requiresAuth: true
            }
          },
          {
            path: 'gantt-sy',
            component: () => import('pages/Demo/GanttSy/GanttSy.vue'),
            meta: {
              requiresAuth: true
            }
          },
          {
            path: 'schedule-sy',
            component: () => import('pages/Demo/ScheduleSy/ScheduleSy.vue'),
            meta: {
              requiresAuth: true
            }
          }
        ]
      }
    ]
  },
  ...wpRoutes,
  ...ppRoutes
]

export default busRoutes
